home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-16 | 5.2 KB | 212 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SLSUSink.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- * ----- Our Includes
- */
-
-
- #ifndef SOM_FW_OStorageUnitSink_xh
- #define SOM_FW_OStorageUnitSink_xh
-
- class FW_OStorageUnitSink;
-
- #define FW_OStorageUnitSink_MajorVersion 1
- #define FW_OStorageUnitSink_MinorVersion 0
-
- /*
- * Passthru lines: File: "C.xh", "before"
- */
-
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_FW_ORandomAccessSink_xh
- #include <SLRanSin.xh>
- #endif
-
- #ifndef FW_OStorageUnitSink_API
- #define FW_OStorageUnitSink_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class FW_OSink;
- class FW_ORandomAccessSink;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODRefCntObject;
- class ODStorageUnit;
- class ODDraft;
- class ODSession;
- class ODPart;
- class ODStorageUnitCursor;
- class ODStorageUnitView;
- class ODStorageUnitRefIterator;
- class FW_OStorageUnitSink;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define FW_OStorageUnitSinkCClassData FW_OStorageUnitSinkClassData
- #define FW_OStorageUnitSinkNewClass(major,minor) somNewVersionedClassReference(FW_OStorageUnitSink,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define FW_OStorageUnitSinkMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the FW_OStorageUnitSink class object, and the methods it introduces. */
- SOMEXTERN struct FW_OStorageUnitSinkClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken InitFromStorageUnitView;
- somMToken InitFromStorageUnitAndProperty;
- somMToken GetStorageUnitView;
- } SOMDLINK FW_OStorageUnitSinkClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(FW_OStorageUnitSink_Class_Source) && !defined(SOM_Module_slsusink_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list FW_OStorageUnitSinkClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for FW_OStorageUnitSink Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_FW_OStorageUnitSink_InitFromStorageUnitView)(FW_OStorageUnitSink *somSelf, Environment *ev,
- ODStorageUnitView* storageUnitView);
- typedef void (* SOMLINK somTD_FW_OStorageUnitSink_InitFromStorageUnitAndProperty)(FW_OStorageUnitSink *somSelf, Environment *ev,
- ODStorageUnit* storageUnit,
- ODPropertyName propertyName,
- ODValueType valueType);
- typedef ODStorageUnitView* (* SOMLINK somTD_FW_OStorageUnitSink_GetStorageUnitView)(FW_OStorageUnitSink *somSelf, Environment *ev);
- }
-
- #endif /* FW_OStorageUnitSink_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for FW_OStorageUnitSink
- */
- class FW_OStorageUnitSink : public FW_ORandomAccessSink
- {
- public:
-
- // FW_OStorageUnitSink::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for FW_OStorageUnitSink, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(FW_OStorageUnitSink);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(FW_OStorageUnitSink);
- #endif
- }
-
- // FW_OStorageUnitSink::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: InitFromStorageUnitView */
- void InitFromStorageUnitView(Environment *ev,
- ODStorageUnitView* storageUnitView)
- {
- SOM_ResolveD(this,FW_OStorageUnitSink,FW_OStorageUnitSink,InitFromStorageUnitView)
- (this,ev,storageUnitView);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: InitFromStorageUnitAndProperty */
- void InitFromStorageUnitAndProperty(Environment *ev,
- ODStorageUnit* storageUnit,
- ODPropertyName propertyName,
- ODValueType valueType)
- {
- SOM_ResolveD(this,FW_OStorageUnitSink,FW_OStorageUnitSink,InitFromStorageUnitAndProperty)
- (this,ev,storageUnit,propertyName,valueType);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: GetStorageUnitView */
- ODStorageUnitView* GetStorageUnitView(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- ODStorageUnitView* __somResult =
- SOM_ResolveD(this,FW_OStorageUnitSink,FW_OStorageUnitSink,GetStorageUnitView)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,FW_OStorageUnitSink,FW_OStorageUnitSink,GetStorageUnitView)
- (this,ev);
- #endif
- }
-
- }; /* FW_OStorageUnitSink */
-
-
-
- #endif /* SOM_FW_OStorageUnitSink_xh */
-